/**
 * 
 */
package com.admin.his.common.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * @author 张三
 *
 */
public interface CRUDDao<T,ID> {
	void insert(T t)throws Exception;
	void delete(ID id)throws Exception;
	void update(@Param("id") ID id, @Param("m") Map<String, Object> columns)throws Exception;
	T selectById(ID id)throws Exception;
	boolean selectExists(@Param("column") String column, @Param("value") Object value)throws Exception;
	List<T> selectAll(String orderby)throws Exception;
	
	
	
}
